AC_INIT([gtrans], [0.1], [hu.attila.nagy@gmail.com])
AC_PREREQ([2.59])
AM_INIT_AUTOMAKE

dnl pkg-config
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$PKG_CONFIG" = "xno"; then
	AC_MSG_ERROR([You need to install pkg-config])
fi

AC_PROG_CXX
AC_CONFIG_HEADERS([config.h])

AM_GNU_GETTEXT([external])

PKG_CHECK_MODULES([GTKMM], [gtkmm-2.4 >= 2.12.2])
PKG_CHECK_MODULES(LIBSOUP_GNOME,
          [libsoup-gnome-2.4 >= 2.26],
          [LIBSOUP_CFLAGS="$LIBSOUP_GNOME_CFLAGS"
           LIBSOUP_LIBS="$LIBSOUP_GNOME_LIBS"
           AC_DEFINE(HAVE_LIBSOUP_GNOME, 1, [Have libsoup-gnome])],
          [PKG_CHECK_MODULES(LIBSOUP, [libsoup-2.4 >= 2.26])])
PKG_CHECK_MODULES([GST], [gstreamer-0.10 >= 0.10])
PKG_CHECK_MODULES([JSON], [json-glib-1.0])
dnl PKG_CHECK_MODULES([GCONF], [gconfmm-2.6])
dnl PKG_CHECK_MODULES([GCONF_BRIDGE], [libgconf-bridge])
PKG_CHECK_MODULES([NOTIFY], [libnotify])

GLIB_GSETTINGS

AC_CONFIG_FILES([ po/Makefile.in
	Makefile
	src/Makefile
	data/Makefile
])
AC_OUTPUT
